import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Pisoverde here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Pisoverde extends Ladrillo2
{
    private Ladrillo2 []arregloLadrillo;
    
    public Pisoverde()
    {
      arregloLadrillo= new Ladrillo2[60];
        for(int i=0;i<60;i++)
        {
        arregloLadrillo[i]=new Ladrillo2();  
        }
    }
    
    
    /**
     * Act - do whatever the Piso wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
    }    
    
    protected void addedToWorld(World world)
    {
        int ii=0;
        for(int i=0;i<60;i++)
        {
          world.addObject(arregloLadrillo[i],getX()+ii,getY());
          ii+=15;
        }
    }   
}
